package cn.ffcs.bpmpvc.web.util;

import javax.servlet.http.HttpServletRequest;

import cn.ffcs.security.web.UserContext;
import cn.ffcs.util.context.Constant;

public class UserContextUtil {
	public static UserContext getUserContext(HttpServletRequest request) {
		String LOGIN_USER_CONTEXT_ = Constant.LOGIN_USER_CONTEXT_;
		UserContext userContext = (UserContext) request.getSession().getAttribute(LOGIN_USER_CONTEXT_);
		return userContext;
	}
}
